package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 订单模块-订单操作记录表
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("omc_order_operation")
public class OrderOperation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 操作人id
     */
    private Long operatorId;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 操作人角色 代理商，客服，发货员
     */
    private Integer operatorRole;

    /**
     * 操作人角色标签 经销商；一级代理；....
     */
    private String  roleLebel;

    /**
     * 操作类型 1 订单审核；2点单编辑
     */
    private Integer operateType;

    /**
     * 操作备注
     */
    private String remark;

    /**
     * 操作内容
     */
    private String operation;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建时间
     */
    private Date createdTime;


}
